Update XML
Use the Update XML action A tool for building the processes, logic, and direction within workflows. to update a specific data in an XML (Extensible Markup Language) source.
Before you begin:
-
Understand Variables
An XML file is an XML (Extensible Markup Language) data file that uses tags to define objects and object attributes. It is formatted much like an .HTML document, but uses custom tags to define objects and the data within each object. The XML format stores data in a structure that is machine-readable and human-readable.
You can add actions to create branches such as Branch by stage or to contain other actions such as Action Set that can be collapsed down into a single action high-level view.
Jump to:
Configure the Update XML action
-
Add the action to the workflow and open the action configuration panel. For more information, see Add an action to the workflow.
- Select the XML Source.
- Specify the XPath Query.
- Select an option for the Selected nodes action.
- Specify the Value you want to use to update the XML data.
- Click Save.
Update XML fields, buttons, and settings
Section |
Field or button |
Description |
Variable types |
---|---|---|---|
(Unlabeled) | XML Source |
The XML content that you want to update. For example: Note: Although XML-reserved characters such as an ampersand ("&") or less-than sign ("<") are supported, the returned output is encoded. |
Text, Decimal, Integer, Boolean, DateTime, Collection |
XPath Query |
The XPath (XML Path Language) query to retrieve nodes in an XML. The XPath query can resolve to a single node, or a node list. If the result is a node list, the selected operation will be applied to each node. For example, if you want to replace the content of the <Book></Book> node in the XML Source " What is XPath and XPath query?
XPath or XML Path language is a query language that is used to query data from XML documents. An XPath query can be used for the purpose of content scanning of XML documents. Note: XPath has seven types of nodes: element, attribute, text, namespace, processing-instruction, comment, and document nodes. For more information about XPath or XML, see this W3Schools.com article. |
Text, Decimal, Integer, Boolean, DateTime, Collection | |
Selected nodes action |
Specify the operation to perform on the selected node. Select one of the following options.
|
(n/a) | |
Value |
The value used to update the XML data. |
Text, Decimal, Integer, Boolean, DateTime, Collection | |
Output | Result |
The variable used to store the result of the updated XML. |
Text |